﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SmartWMS.Common.ResponseOutput;
using SmartWMS.Server.StatementServer.AvailableStockServices;
using SmartWMS.Server.StatementServer.AvailableStockServices.Dto;

namespace SmartWMS.API.Controllers.StatementMange
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class AvailableStockController : ControllerBase
    {
        private readonly IAvailableStockServices _availableStockServices;

        public AvailableStockController(IAvailableStockServices availableStockServices)
        {
            _availableStockServices = availableStockServices;
        }


        /// <summary>
        /// 可出库存列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        [HttpPost]
        public Task<Response<List<AvailableStockDto>>> GetAvailableStockList(AvailableStockSelectDto input)
        {
            return _availableStockServices.GetAvailableStockList(input);
        }
    }
}
